package com.mercury.ec.framework.air.core.client;


import com.mercury.ec.framework.air.core.property.AirChannelProperties;

/**
 * 机票客户端的工厂接口
 *
 * @author hesx
 */
public interface AirClientFactory {

    /**
     * 获得机票 Client
     *
     * @param channelId 渠道编号
     * @return 机票 Client
     */
    AirClient getAirClient(Long channelId);


    /**
     * 创建机票 Client
     *
     * @param properties 配置对象
     */
    void createOrUpdateAirClient(AirChannelProperties properties);

}
